﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using OperGui.Languages;

namespace OperGui.Views
{
    /// <summary>
    /// Interaction logic for LanguageWindow.xaml
    /// </summary>
    public partial class LanguageWindow : Window
    {
        public LanguageWindow()
        {
            InitializeComponent();
            this.Topmost = true;
        }

        private void OnLoadEnglishClick(object sender, RoutedEventArgs e)
        {
            LanguageHelper.LoadLanguageFile("pack://siteOfOrigin:,,,/Languages/en-US.xaml");
            this.Hide();
        }

        private void OnLoadChineseClick(object sender, RoutedEventArgs e)
        {
            LanguageHelper.LoadLanguageFile("pack://siteOfOrigin:,,,/Languages/zh-CN.xaml");
            this.Hide();
        }
    }
}